<template>
    <div>Collect</div>
</template>

<script>
export default {
    name: 'CollectPage',
    created() {
        console.log('组件被创建了')
    },
    destroyed() {
        console.log('组件被销毁了')
    },
    // keep-alive缓存后的组件，会有这两个生命周期
    activated() {
        console.log('缓存组件被激活')
    },
    deactivated() {
        console.log('缓存组件被隐藏')
    }
}
</script>
